package day11;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author joker
 * @date 2022/4/21 0021 - 22:36
 */
public class Test05 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("ia_100000389 - 副本.txt");
        InputStreamReader isr = new InputStreamReader(fis,"utf-8");
        char[] cbuf=new char[1024];
        int read ;
        while ((read=isr.read(cbuf))!=-1){
            System.out.println(new String(cbuf,0,read));
        }
    }
}
